//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\DepositAccountingDO.java

package com.ce.pms.renovation.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:保证金核算结果 关联数据表:RM_DEPOSIT_ACCOUNTING
 *
 * @author yandawei
 * @CreateDate:2008-12-17
 */
@Entity
@Table(name = "RM_DEPOSIT_ACCOUNTING")
public class DepositAccountingDO implements IDomainObject {

	/**
	 *
	 */
	private static final long serialVersionUID = -3791840773611248772L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "DEPOSIT_ACCOUNTING_ID")
	private Long keyword;

	/**
	 * 验收申请DO
	 */
	@OneToOne
	@JoinColumn(name = "INSPECTION_REQUISITION_ID")
	private InspectionRequisitionDO inspectionRequisitionDO;

	/**
	 * 业主罚款
	 */
	@Column(name = "CLIENT_AMERCEMENT", precision = 12, scale = 2)
	private BigDecimal clientAmercement = new BigDecimal(0.00);

	/**
	 * 退回业主保证金
	 */
	@Column(name = "RETURN_CLIENT_DEPOSIT", precision = 12, scale = 2)
	private BigDecimal returnClientDeposit = new BigDecimal(0.00);

	/**
	 * 补收业主金额
	 */
	@Column(name = "CLIENT_ADDED_AMERCEMENT", precision = 12, scale = 2)
	private BigDecimal clientAddedAmercement = new BigDecimal(0.00);

	/**
	 * 装修公司罚款
	 */
	@Column(name = "COMPANY_AMERCEMENT", precision = 12, scale = 2)
	private BigDecimal companyAmercement = new BigDecimal(0.00);

	/**
	 * 退回装修商保证金
	 */
	@Column(name = "RETURN_COMPANY_DEPOSIT", precision = 12, scale = 2)
	private BigDecimal returnCompanyDeposit = new BigDecimal(0.00);

	/**
	 * 补收装修商罚款
	 */
	@Column(name = "COMPANY_ADDED_AMERCEMENT", precision = 12, scale = 2)
	private BigDecimal companyAddedAmercement = new BigDecimal(0.00);

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 100)
	private String remark;

	/**
	 * 审批状态 001-新建，002-待审，003-审批通过，004-审批不通过
	 */
	@Column(name = "APPROVAL_STATE", nullable = false, length = 3)
	private String approvalState;

	/**
	 * 是否已退 1是, 0否
	 */
	@Column(name = "HANDLE_YN", nullable = false, length = 1)
	private String handleYn;

	/**
	 * 核算日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name="DEPOSIT_DATE",nullable=false)
	private Date depositDate;

	/**
	 * 系统信息
	 */
	@Embedded
	@AttributeOverride(name = "sysDate", column = @Column(name = "SYS_DATE"))
	private SysInfo sysInfo;

	/**
	 * @roseuid 4940A670000F
	 */
	public DepositAccountingDO() {

	}

	public DepositAccountingDO(Long keyword) {
		super();
		this.keyword = keyword;
	}

	public String getApprovalState() {
		return approvalState;
	}

	public void setApprovalState(String approvalState) {
		this.approvalState = approvalState;
	}

	public BigDecimal getClientAddedAmercement() {
		return clientAddedAmercement;
	}

	public void setClientAddedAmercement(BigDecimal clientAddedAmercement) {
		this.clientAddedAmercement = clientAddedAmercement;
	}

	public BigDecimal getClientAmercement() {
		return clientAmercement;
	}

	public void setClientAmercement(BigDecimal clientAmercement) {
		this.clientAmercement = clientAmercement;
	}

	public BigDecimal getCompanyAddedAmercement() {
		return companyAddedAmercement;
	}

	public void setCompanyAddedAmercement(BigDecimal companyAddedAmercement) {
		this.companyAddedAmercement = companyAddedAmercement;
	}

	public BigDecimal getCompanyAmercement() {
		return companyAmercement;
	}

	public void setCompanyAmercement(BigDecimal companyAmercement) {
		this.companyAmercement = companyAmercement;
	}

	public String getHandleYn() {
		return handleYn;
	}

	public void setHandleYn(String handleYn) {
		this.handleYn = handleYn;
	}

	public InspectionRequisitionDO getInspectionRequisitionDO() {
		return inspectionRequisitionDO;
	}

	public void setInspectionRequisitionDO(
			InspectionRequisitionDO inspectionRequisitionDO) {
		this.inspectionRequisitionDO = inspectionRequisitionDO;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public BigDecimal getReturnClientDeposit() {
		return returnClientDeposit;
	}

	public void setReturnClientDeposit(BigDecimal returnClientDeposit) {
		this.returnClientDeposit = returnClientDeposit;
	}

	public BigDecimal getReturnCompanyDeposit() {
		return returnCompanyDeposit;
	}

	public void setReturnCompanyDeposit(BigDecimal returnCompanyDeposit) {
		this.returnCompanyDeposit = returnCompanyDeposit;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

	public Date getDepositDate() {
		return depositDate;
	}

	public void setDepositDate(Date depositDate) {
		this.depositDate = depositDate;
	}



}
